#!/bin/bash
expected_args=3
#first argument is path to source folder.. second argument is name of file to profile.. third argument is path to folder of output file..
if [ $# -ne $expected_args ]
then
	echo "Please insert path to the compiled source file."
else

	cd $1
	gprof $2>$3
	#get current dir	
	#DIR="$( cd "$( dirname "$0" )" && pwd )"
	#echo $DIR
fi
